package com.test.mybatis.test_mybatis.mapper.simple;

import com.test.mybatis.test_mybatis.entity.simple.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {

    /**
     * 根据请求参数，查询医生列表
     * @param param
     * @return
     */
    List<Teacher> selectDetailByParam(@Param("param") String param);

    Teacher selectDetailById(Integer id);

    /**
     * 使用子查询进行查询数据
     * @return
     */
    List<Teacher> selectBySubQuery();

    /**
     * 查询所有的教师集合
     * @return
     */
    List<Teacher> selectAll();

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table teacher
     *
     * @mbg.generated Thu Jan 14 17:39:52 CST 2021
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table teacher
     *
     * @mbg.generated Thu Jan 14 17:39:52 CST 2021
     */
    int insert(Teacher record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table teacher
     *
     * @mbg.generated Thu Jan 14 17:39:52 CST 2021
     */
    int insertSelective(Teacher record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table teacher
     *
     * @mbg.generated Thu Jan 14 17:39:52 CST 2021
     */
    Teacher selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table teacher
     *
     * @mbg.generated Thu Jan 14 17:39:52 CST 2021
     */
    int updateByPrimaryKeySelective(Teacher record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table teacher
     *
     * @mbg.generated Thu Jan 14 17:39:52 CST 2021
     */
    int updateByPrimaryKey(Teacher record);
}